package org.example.innovate.vo;

import lombok.Data;
import org.example.innovate.domain.Dish;

@Data
public class DishOneVo extends Dish {
    private String username;
    public void setDish(Dish dish) {
        this.setName(dish.getName());
        this.setDishId(dish.getDishId());
        this.setUserId(dish.getUserId());
        this.setCategory(dish.getCategory());
        this.setDescriptionUrl(dish.getDescriptionUrl());
        this.setImageUrl(dish.getImageUrl());
        this.setLikes(dish.getLikes());
        this.setFavorites(dish.getFavorites());
        this.setViews(dish.getViews());
        this.setTag(dish.getTag());
        this.setNutritionInfo(dish.getNutritionInfo());
        this.setCreatedAt(dish.getCreatedAt());
        this.setUpdatedAt(dish.getUpdatedAt());
    }
}
